//TempConverter.java 
//Domonstrates the use of primitive data types and arithmetic expressions.
public class TempConverter
{
  //computes the 华氏温度=9/5摄氏温度+32
  public static void main(String[] args)
  {
    final int BASE = 32;
    final double CONVERSION_FACTOR = 9.0 / 5.0;
    
    double fahrenheitTemp;
    int celsiusTemp = 24;//value to convert

    fahrenheitTemp = celsiusTemp * CONVERSION_FACTOR + BASE;
    
    System.out.println("Celsius Temperature: " + celsiusTemp);
    System.out.println("Fahrenheit Equivalent:" + fahrenheitTemp);
  }
}  
